tools/insn-fuzz: Provide IA32_DEBUGCTL consistently to the emulator
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 27 Mar 2017 09:37:35 +0000 (10:37 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 6 Apr 2017 17:42:49 +0000 (18:42 +0100)
commit9e9b56fe8aab1f9376acdbbac575b97b7a4e8df9
tree3fb11eb95432cb8feaa8c2796a8a16fb9581c7d3
parent125372a6e51eb6fd5d8a2185bf66e48647c7d770
tools/insn-fuzz: Provide IA32_DEBUGCTL consistently to the emulator

x86_emulates()'s is_branch_step() performs a speculative read of
IA32_DEBUGCTL, but doesn't squash exceptions should they arise.  In reality,
this MSR is always available.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
tools/fuzz/x86_instruction_emulator/fuzz-emul.c